﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace MiniStock.Entities.Stock
{
    [ComplexType]
    [DataContract(IsReference = true)]
    public class Person : ICloneable
    {
        [DataMember]
        public string FirstName { get; set; }
        [DataMember]
        public string LastName { get; set; }

        public virtual object Clone()
        {
            return new Person
                       {
                           FirstName = this.FirstName,
                           LastName = this.LastName,
                       };
        }
    }
}
